class Dog():
    def __init__(self, name, age):
      self.name = name
      self.age = age
      
    def wang(self):
        print(self.name.title()+"汪汪")
        
    def shen(self):
        print(self.name.title()+"伸舌头")
        
my_dog=Dog('将军',6)
your_dog=Dog('武士',5)
my_dog.wang()
your_dog.wang()
my_dog.shen()
your_dog.shen()